package model;

import javafx.beans.property.SimpleStringProperty;

public abstract class Company
{
    private final SimpleStringProperty  companyName;
    private final SimpleStringProperty  address;

    protected Company()
    {
        this.companyName = new SimpleStringProperty("N/A");
        this.address = new SimpleStringProperty("N/A");
    }

    protected Company(String compName, String addr)
    {
        this.companyName = new SimpleStringProperty(compName);
        this.address = new SimpleStringProperty(addr);
    }

    protected Company(Company company)
    {
        this.companyName = company.companyName;
        this.address = company.address;
    }

    public String getCompanyName()
    {
        return companyName.get();
    }

    public void setCompanyName(String compName)
    {
        companyName.set(compName);
    }

    public String getAddress()
    {
        return address.get();
    }

    public void setAddress(String addr)
    {
        address.set(addr);
    }
}